# def pytest_collection_modifyitems(items):
#     for item in items:
#         # 修复Unicode名称问题
#         if hasattr(item, 'callspec'):
#             item.callspec.id = item.callspec.id.encode('latin1').decode('unicode-escape')
#
#         # 修复Allure的fixture解析问题
#         if hasattr(item, '_request'):
#             item._request.fixturenames = [
#                 name.encode('latin1').decode('unicode-escape')
#                 for name in getattr(item._request, 'fixturenames', [])
#             ]
